package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.Role;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author Five Team
 * @since 2018-05-15
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRoleAndPermissionListById(@Param("id") Long id);

    List<Role> selectRolesByUserId(@Param("userId") Long userId);


}
